package com.example.hello.client.Nav;

import com.vaadin.shared.AbstractComponentState;
import com.vaadin.shared.Connector;

import java.util.LinkedList;
import java.util.List;

@SuppressWarnings("serial")
public class BootstrapNavState extends AbstractComponentState {

    private List<Connector> navs = new LinkedList<Connector>();

    private String alignment = "NONE";

    public List<Connector> getNavs() {
        return navs;
    }

    public void setNavs(List<Connector> navs) {
        this.navs = navs;
    }

    public void addNav(Connector nav) {
        navs.add(nav);
    }

    public void addNav(Connector nav, int index) {
        navs.add(index, nav);
    }

    public void removeNav(Connector nav) {
        navs.remove(nav);
    }

    public String getAlignment() {
        return alignment;
    }

    public void setAlignment(String alignment) {
        this.alignment = alignment;
    }

}